package com.top.application.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.top.application.dao.UserTokenEntityMapper;
import com.top.application.entity.UserTokenEntity;
import com.top.application.service.UserTokenService;

@Service("userTokenService")
public class UserTokenServiceImpl implements UserTokenService{
	@Autowired
	private UserTokenEntityMapper userTokenEntityMapper;
	
	@Override
	public int delete(Integer id) {
		return userTokenEntityMapper.delete(id);
	}

	@Override
	public int insert(UserTokenEntity userTokenEntity) {
		return userTokenEntityMapper.insert(userTokenEntity);
	}

	@Override
	public UserTokenEntity selectById(Integer id) {
		return userTokenEntityMapper.selectById(id);
	}

	@Override
	public int update(UserTokenEntity userTokenEntity) {
		return userTokenEntityMapper.update(userTokenEntity);
	}

	@Override
	public UserTokenEntity selectByAccessToken(String accessToken) {
		return userTokenEntityMapper.selectByAccessToken(accessToken);
	}

}
